import pickle

a_dict={'da':111,2:[23,1,4],'23':{1:2,'d':'asd'}}

#写入数据
# file=open('pickle_example.pickle','wb')
# pickle.dump(a_dict,file)
# file.close()
    


with open('pickle_example.pickle','rb') as file:
    a_dict=pickle.load(file)

print(a_dict)